#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from PageObjects.ACToys.ACToysBasePage import ACToysBasePage
from Utils.Element import Element
from Utils.PropertiesParsor import ParsePageProperty

parse_string = ParsePageProperty().parse_string
parse_locator = ParsePageProperty().parse_locator


class ACToysHomePage(ACToysBasePage):

    @staticmethod
    def parse_url():
        return parse_string('ACToys.ACToysHomePage.url')

    @staticmethod
    def parse_title():
        return parse_string('ACToys.ACToysHomePage.title')

    def transformer_trade_link(self):
        return Element(self.driver, parse_locator('ACToys.ACToysHomePage.transformer_trade_link'))

if __name__ == '__main__':
    pass
